<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <h:form>
            <p:panelGrid columns="2" style="width: 300px" >
                <f:facet name="header">
                    <h:outputText value="Login" />
                </f:facet>
                <h:column >
                    <h:outputText value="Username : " />
                </h:column>
                <h:column >
                    <p:inputText  value="#{customerBean.username}" />
                </h:column>
                <h:column >
                    <h:outputText value="Password : " />
                </h:column>
                <h:column >
                    <p:inputText  value="#{customerBean.password}" />
                </h:column>
                <f:facet name="footer" >
                    <p:commandButton value="Login" ajax="false" action="#{customerBean.loginAction}" />
                </f:facet>

            </p:panelGrid>

            <p:captcha    />
        </h:form>
        <h:link outcome="masterpage" value="link to master page" />
    </h:body>
</html>

